package com.yhd.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * 约课信息表
 */
@Data
public class TCourseAbout implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    @KeySql(useGeneratedKeys = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "jdbc")
    private Integer id;
    //订单表id
    @Column(name = "orderId")
    private Integer orderId;
    /**
     * 用户id
     */
    @Column(name = "userId")
    private String userId;
    /**
     * 约课日期
     */
    @Column(name = "targetDate")
    private Date targetDate;
    /**
     * 创建时间
     */
    @Column(name = "createTime")
    private Date createTime;
    
    //课程id
    @Column(name = "courseId")
    @ApiModelProperty(value = "课程id")
    private Integer courseId;

    //排课id
    @Column(name = "courseSchId")
    @ApiModelProperty(value = "排课id")
    private Integer courseSchId;
    
    @ApiModelProperty(value = "状态 0=取消，1=正常状态，2=已结束")
    @Column(name = "status")
    private Integer status;
    
    /**
     * 预约类型：0=普通预约，1=体验预约
     */
    @Column(name = "subType")
    @ApiModelProperty(value = "预约类型：0=普通预约，1=体验预约")
    private Integer subType;

}